package com.itheima.mapper;

import com.itheima.domain.SysLog;
import org.apache.ibatis.annotations.Insert;

/**
 * @Name SysLogMapper
 * @Author BaiXin
 * @Date 2022-10-18 20:00
 */
public interface SysLogMapper {
    /**
     * 添加日志
     * @param sysLog
     */
    @Insert("insert into sys_log (username, operation, method, params, created) " +
            "values (#{username},#{operation},#{method},#{params},#{created})")
    void add(SysLog sysLog);
}
